Skip to content

WIP: Allow inline/implicit matches to bind type symbols #5630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from

Conversation

abgruszecki
Copy link
Contributor

@abgruszecki abgruszecki commented Dec 17, 2018

Uses constraint infrastructure from #5611.

Following code now passes typechecking:
c469970#diff-d8e17415f7fef27f0f81cd979db83c4a

Due to how we change .info, inline matching on ??? : t if t is pattern-bound does not typecheck
c469970#diff-984c5e6efcdc62c8bbbb64967e67de90
The underlying issue is that some results are cached for the symbol before its info was changed.

In general, no code passes pickler roundtrips, including the following:
c469970#diff-7707ba03ed68a7c38cd6f5e3e3cd1ba7
The underlying issue seems to be re-using pattern-bound symbols as definitions.

@abgruszecki abgruszecki mentioned this pull request Dec 17, 2018
@abgruszecki abgruszecki self-assigned this Dec 17, 2018
@abgruszecki
Copy link
Contributor Author

Closing in favour of #5657.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant